<template>
  <div class="layout">
    <div class="container">
      <router-view></router-view>
    </div>
  </div>
</template>

<script setup lang="ts">
import { onMounted, ref } from "vue";
import { checkPm } from "./api/authration";
import { useCommonStore } from "./store/common";
const store = useCommonStore()
// document.body.addEventListener('touchmove', (e) => {
//   if (e._isScroller) return;
//   e.preventDefault()
// }, {
//   passive: false
// })
onMounted(() => {
  checkPm({ token: '' }).then(res => {
    if (res.code == 200) {
      store.isPm = Boolean(res.isPm)
    }
  })
})
</script>

<style lang="less">
.layout {
  display: flex;
  flex-direction: column;
  height: 100%;

  .container {
    flex: 1;
  }

  .van-nav-bar .van-icon {
    color: #FDFDFD;
  }

  .van-nav-bar__content {
    background-color: #5a76b9;
    height: 40px;

    .van-nav-bar__title {
      color: white;

    }
  }
}

html,
body,
#app {
  height: 100%;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

.pdlr-17 {
  padding: 0 17.2px;
}

.mt-20 {
  margin-top: 20px;
}
</style>
